package homework;

import java.util.Collection;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User：Lenovo
 * Date:2024-11-13
 * Time:22:25
 */
//删除公共字符
public class Test_11_13_2 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        while(scanner.hasNextLine()){
            String str1=scanner.nextLine();
            String str2=scanner.nextLine();
            System.out.println(func(str1,str2));
        }
    }
    public static String func(String str1,String str2){
        StringBuilder stringBuilder=new StringBuilder();
        for(int i=0;i<str1.length();i++){
            char c=str1.charAt(i);
            boolean flag=true;
            if(c!=' '){
                for(int j=0;j<str2.length();j++){
                    if(c==str2.charAt(j)) {
                        flag = false;
                        break;
                    }
                }
            }
            if(flag==true){
                stringBuilder.append(c);
            }
        }
        Collection
        return String.valueOf(stringBuilder);
    }
}
